import layout from '@/layouts/base-layout/index.vue'

const pre = 'dashboard-'

export default {
  path: '/dashboard',
  component: layout,
  meta: { name: 'Dashboard', iconSvg: 'menu-dashboard' },
  redirect: {
    name: `${pre}home`
  },
  children: [
    {
      path: 'home',
      name: `${pre}home`,
      meta: { name: '主控台', affix: true },
      component: () => import('@/views/dashboard/home.vue')
    },
    {
      path: 'monitor',
      name: `${pre}monitor`,
      meta: { name: '监控页', icon:'plus'},
      component: () => import('@/views/dashboard/monitor.vue')
    }
  ]
}
